package controller;

import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/student")
public class Student {

    //Get请求
    @GetMapping("/list")
    public String getStudent(){
        return "get Student";
    }

    //Post请求
    @PostMapping("/add")
    public String addStudent(){
        return "add Student";
    }

    //Put请求
    @PutMapping("/update")
    public String updateStudent(){
        return "update Student";
    }

    //Delete请求
    @DeleteMapping("/delete")
    public String deleteStudent(){
        return "delete Student";
    }
}
